package com.guigu.tms.commons.aggregation.feign;

import com.guigu.tms.commons.aggregation.entity.TaskTransport;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "tms-aggregation",path = "/taskTransport",contextId = "taskTransport")
public interface TaskTransportFeignClient {

    @PostMapping("createTaskTransport")
    boolean createTaskTransport(@RequestBody TaskTransport taskTransport);

    @PostMapping("updateTaskTransport")
    boolean updateTaskTransport(@RequestBody TaskTransport taskTransport);

    @PutMapping("updateTaskTransportById")
    boolean updateTaskTransportById(@RequestBody TaskTransport taskTransport);
}
